// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import babelpolyfill from 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import store from '@/store'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Axios from "axios"
Vue.prototype.$axios = Axios; //将axios挂载到原型上

Vue.use(ElementUI);

Vue.config.productionTip = false

import Api from '@/api/index.js';
Vue.prototype.$Api = Api; //接口请求地址

import types from '@/constants/types'
Vue.prototype.$types = types; //vuex action类型
/* eslint-disable no-new */
new Vue({
    el: '#app',
    store,
    router,
    components: {
        App,
    },
    template: '<App/>'
})
